#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2021-7-10 21:55
class Dog:
    '''创建Dog类'''

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def sit(self):
        print(f'{self.name} is now sitting!')

    def roll_over(self):
        print(f'{self.name} rolled over!')


# 创建实例
my_dog = Dog('xiaobai', 3)
your_dog = Dog('bandian', 6)
print(my_dog)  # 获取Dog对象实例的内存地址，并将my_dog指向该内存地址
print(f"My dog's name is {my_dog.name.title()}")
my_dog.sit()
my_dog.roll_over()

print('*******************************************')

print(f"Your dog's name is {your_dog.name.title()}")
your_dog.sit()
your_dog.roll_over()
